package com.spider.ask120.service;

import org.jdiy.core.Args;
import org.jdiy.core.Rs;
/**
 * 疾病知识
 * @author Shan
 *
 */
public class DiseaseKnowledgeService extends BaseService{
	/**
	 * 根据疾病Id查询疾病知识
	 * @param d_id 疾病Id
	 * @return
	 */
	public static Rs getDKByDiseaseId(String d_id){
		Rs dk = dao.rs(new Args("disease_knowledge","disease_id="+d_id));
		return dk;
	}
	/**
	 * 保存疾病知识信息
	 * @param dk
	 */
	public static void save(Rs dk) {
		dao.save(dk);
	}
	
	public static Rs getDKByStrId(String str_id) {
		Rs disease_know = dao.rs(new Args("disease_knowledge","str_id='"+str_id+"' "));
		return disease_know;
	}
	
}
